import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

import Home from '@/views/home'
import Login from '@/views/login'
import TodoList from '@/views/todolist'
import VuextodoList from '@/views/vuextodolist'
const router = new VueRouter({
  mode: 'history',
  routes: [
    {
      path: '/',
      redirect: '/home'
    },
    {
      path: '/home',
      component: Home
    },
    {
      path: '/login',
      component: Login
    },
    {
      path: '/todolist',
      component: TodoList
    },
    {
      path: '/vuextodolist',
      component: VuextodoList
    }
  ]
})

export default router